-
-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config cache for system.xml loader: Speed improvement #1916
Conversation
For me:
|
I think that this error is due to this PR (exception.log):
|
sounds like there is still a check missing, to not cache it when the cache is disabled? |
Agree with @Flyingmana, I don't see any code that checks if the cache is enabled. Example from magento-lts/app/code/core/Mage/Api/Model/Config.php Lines 58 to 70 in 4e7a8e1
|
Yeah, you're right. Pushed new commit with fix. Bound to 'config' cache |
Done with description |
I still get the following error (I didn't searched why - PHP 8.0): |
I think this chnage deservces an comment in readme/changelog, as it changes an expected behaviour developers have -> now they will need to clear the cache after changing system.xml |
Yes, because that parameter is not passed to the parent class. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two more changes to please phpstan
@fballiano What do you think about mentioning this change in README under "Between Magento 1.9.4.5 and OpenMage 19.x" as tmotyl suggested? |
@elidrissidev added info to README ;-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested once again and everything works well for me, and also a big improvement in loading speed across the Admin area!
Description (*)
System.xml loading is not cached anywhere. So each time you open backend page in Magento it scans ALL system.xml inside all modules, merges them and doesn't cache this big XML structure.
Header menu is rendered from system.xml contents too, not only config fields and sections!
My PR implements caching of this stuff.
It decreases any admin page load time in about 1.5 sec on second load on my local machine :)
Manual testing scenarios (*)
Open any magento config page twice and measure time of page load
Contribution checklist (*)